package com.example.demo.entity.vo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色和权限
 * </p>
 *
 * @author Mr.Abel
 * @since 2024-04-09
 */
@Getter
@Setter
@TableName("role_and_permission")
@ApiModel(value = "RoleAndPermission对象", description = "角色和权限")
public class RoleAndPermissionVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "角色id不能为空")
    @ApiModelProperty("角色id")
    private Integer roleId;

    @NotNull(message = "权限id不能为空")
    @ApiModelProperty("权限id")
    private Integer permissionId;

}
